<template>
  <div>
    <div class="flex login-div">
      <img class="login-img" src="@/assets/login-logo.jpg" alt="" />
    </div>
    <div class="child-div flex">
      <input type="text" placeholder="Username" v-model="Username" />
      <input type="password" placeholder="Password" v-model="Password" />
      <div>Forgot you password?</div>
      <button @click="login">Sign in</button>
      <router-link to="/Registry" tag="div">Don’t have an account?</router-link>
    </div>
  </div>
</template>

<script>
import "../../utils/rem";
export default {
  data() {
    return {
      Username: "",
      Password: "",
    };
  },
  methods: {
    login() {
      console.log({loginName:this.Username, loginKey:this.Password});
    },
  },
};
</script>

<style scoped>
.login-img {
  margin-top: 65px;
  width: 265px;
}

.login-div {
  justify-content: center;
}

.child-div {
  height: 280px;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
  justify-content: space-between;
}

.child-div input {
  width: 3.6rem;
  height: 55px;
  border-radius: 50px;
  background-color: #e2f5fc;
  border: 0;
  outline: none;
  padding: 0 40px 0 40px;
  font-size: 20px;
  display: block;
}

.child-div input::-webkit-input-placeholder {
  font-size: 20px;
  color: #94afce;
}

.child-div div {
  font-size: 17px;
  color: #a7b6d0;
}

.child-div button {
  width: 4.6rem;
  height: 50px;
  border-radius: 50px;
  border: 0;
  outline: none;
  font-size: 19px;
  color: white;
  background-color: #ff65a3;
}
</style>